Exists Application
Checking if a user has applied for the job
By appending using the /jobs/{jobDbId}/existsApplication endpoint, it is possible to check if the current user has applied to this job before. The status of the application is not relevant, its existence is sufficent.
1 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/jobs/{jobDbId}/existsApplication" |
with TOKEN being a user access token. Note that in contrast to most functionality of the Jobs API, this will not work with a client access token. The {jobDbId} corresponds to the ID of the job in the database.
Path parameters
Name | Description | Data Type |
---|---|---|
jobDbId | ID of the job to check. | String |
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | Boolean | ‘true‘ if any application by this user exists, ‘false‘ otherwise |
authorization error | 401 / 403 | See here for details. |
Example return value
1 |
true |